<#assign parameters = tag.parameters/>
<table id="${tag.tableId?default("tableId")}" <#rt/>
<#if tag.autoCreate><#rt/>
       data-toggle="boltDataGrid"<#rt/>
</#if><#rt/>
       data-options="{ sidePagination:'server',width:'${tag.width?default("100%")}',height:'${tag.height?default("full-285")}'<#rt/>
<#if tag.url??> ,dataUrl:'${base}${tag.url}'</#if><#rt/>
<#if tag.pagination> ,pagination:'true'</#if><#rt/>
<#if tag.showLinenumber> ,showLinenumber:'true'</#if><#rt/>
<#if tag.checkBox> ,showCheckbox:'true'</#if><#rt/>
<#if tag.toolbar??>,toolbar:'#${tag.toolbar}'</#if><#rt/>
<#rt/>}">
    <thead>
    <#if tag.groupHeads?? && (tag.groupHeads?size > 0) >
    <tr>
        <#list tag.groupHeads as group>
            <th <#rt/>
                <#if group.rowspan gt 0> rowspan="${group.rowspan}" </#if> <#rt/>
                <#if group.colspan gt 0> colspan="${group.colspan}"
                                         data-options="{align:'center' ,width:${group.width?default("100")}}"<#rt/>
                <#else><#rt/>
                                         data-options="{realName:'${group.field}',align:'${group.listAlign?default("center")}'<#rt/>
       <#if group.editor?? && group.editor!=''>,type:'${group.editor}'</#if><#rt/>
       <#if group.format?? && group.format!=''>,formatter:'${group.format}'</#if><#rt/>
       <#if group.order  && group.order!=''>,sortable:'true'</#if><#rt/>
       <#if group.hidden>,visible:false</#if><#rt/>
       ,width:${group.width?default("100")}}"</#if>> ${group.title?html}</th>
        </#list>
    </tr>
    </#if>
    <tr>
    <#list tag.heads as bean>
        <th data-options="{field:'${bean.field}',align:'${bean.listAlign?default("center")}'<#rt/>
<#if bean.editor?? && bean.editor!=''>,type:'${bean.editor}'</#if><#rt/>
<#if bean.format?? && bean.format!=''>,formatter:'${bean.format}'</#if><#rt/>
<#if bean.order  && bean.order!=''>,sortable:'true'</#if><#rt/>
<#if bean.hidden>,visible:false</#if><#rt/>
,width:${bean.width?default("100")}}"> ${bean.title?html}</th>
    </#list>
    </tr>
    </thead>
</table>

